package com.ruoyi.moon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 赞踩管理对象 moon_upvote
 * 
 * @author admin
 * @date 2024-11-06
 */
public class MoonUpvote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户表id 外键 */
    private Long userId;

    /** 公司评论表id 外键 */
    @NotBlank(message = "评论id不能为空")
    private Long comReviewsId;

    /** 类别 */
    @Excel(name = "类别")
    @NotBlank(message = "类别不能为空")
    private String type;

    /** 回复id */
    private Long replyId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setComReviewsId(Long comReviewsId) 
    {
        this.comReviewsId = comReviewsId;
    }

    public Long getComReviewsId() 
    {
        return comReviewsId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("comReviewsId", getComReviewsId())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("replyId", getReplyId())
            .toString();
    }
}
